<?php

namespace Yj\Generator\Core\Helper;

use Hyperf\Utils\Str;

class Helper
{
    /**
     * @param string $fullClassName
     * @return string
     */
    public function getShortClassName($fullClassName)
    {
        $pieces = explode('\\', $fullClassName);

        return end($pieces);
    }

    /**
     * @param string $className
     * @return string
     */
    public function getDefaultTableName($className)
    {
        return (Str::snake($className));
    }
}